<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Page extends CI_Controller {

	public function __construct()
	{
		parent::__construct();
		//载入模型
		//初始化试图变量
		$data = array();
	}

	public function all($page = 1)
	{
		$this->load->library('pagination');
		$config['base_url'] = 'http://127.0.0.1:8000/shop_erp/index.php/page/all/';
		$config['total_rows'] = 200;
		$config['per_page'] = 20; 
		$config['use_page_numbers'] = TRUE;
		$this->pagination->initialize($config); 
		echo $this->pagination->create_links();
	}
}

/* End of file login.php */